/**
 * 
 */
package com.kmk.phonetuition;

import android.app.AlarmManager;
import android.app.Service;
import android.content.Intent;
import android.media.AudioManager;
import android.net.ConnectivityManager;
import android.net.wifi.WifiManager;
import android.os.IBinder;
import android.os.Vibrator;
import android.service.wallpaper.WallpaperService;
import android.telephony.TelephonyManager;
import com.kmk.phonetuition.R;

/**
 * @author kristenkatona
 *
 */
public class SettingsService extends Service {
	
	/* System services retrieval */
	protected AlarmManager alarmManager = (AlarmManager)getSystemService(ALARM_SERVICE);
	protected AudioManager audioManager = (AudioManager)getSystemService(AUDIO_SERVICE);
	protected ConnectivityManager connectivityManager = (ConnectivityManager)getSystemService(CONNECTIVITY_SERVICE);
	protected TelephonyManager telephonyManager = (TelephonyManager)getSystemService(TELEPHONY_SERVICE);
	protected Vibrator vibrator = (Vibrator)getSystemService(VIBRATOR_SERVICE);
	protected WallpaperService wallpaperService = (WallpaperService)getSystemService(WALLPAPER_SERVICE);
	protected WifiManager wifiManager = (WifiManager)getSystemService(WIFI_SERVICE);
	
	/**
	 * 
	 */
	public SettingsService() {
		// TODO Auto-generated constructor stub
	}

	/* (non-Javadoc)
	 * @see android.app.Service#onBind(android.content.Intent)
	 */
	@Override
	public IBinder onBind(Intent arg0) {
		// TODO Auto-generated method stub
		return null;
	}
	
	protected int getRingerVolume() {
		return audioManager.getStreamVolume(AudioManager.STREAM_RING);
	}
	protected int getAlarmVolume() {
		return audioManager.getStreamVolume(AudioManager.STREAM_ALARM);
	}
	protected int getNotificationVolume() {
		return audioManager.getStreamVolume(AudioManager.STREAM_NOTIFICATION);
	}
	protected int getMusicVolume() {
		return audioManager.getStreamVolume(AudioManager.STREAM_MUSIC);
	}
	protected int getSystemVolume() {
		return audioManager.getStreamVolume(AudioManager.STREAM_SYSTEM);
	}
	protected int getVoiceCallVolume() {
		return audioManager.getStreamVolume(AudioManager.STREAM_VOICE_CALL);
	}
	protected int getRingerMode() {
		return audioManager.getRingerMode();
	}
	protected int getRingerVibrateSetting() {
		return audioManager.getVibrateSetting(AudioManager.VIBRATE_TYPE_RINGER);
	}
	protected int getNotificationVibrateSetting() {
		return audioManager.getVibrateSetting(AudioManager.VIBRATE_TYPE_NOTIFICATION);
	}
}
